package com.zdd.ehe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-24
 */
@TableName("t_news_data")
@ApiModel(value = "NewsData对象", description = "")
public class NewsData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("新闻编号")
    @TableId(value = "news_id", type = IdType.AUTO)
    private Integer newsId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("新闻链接")
    private String url;

    @ApiModelProperty("作物")
    private String type;

    @ApiModelProperty("作物编码")
    private String varietyCode;

    @ApiModelProperty("发布时间")
    private LocalDateTime reportTime;

    @ApiModelProperty("新闻状态")
    private String status;

    public Integer getNewsId() {
        return newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVarietyCode() {
        return varietyCode;
    }

    public void setVarietyCode(String varietyCode) {
        this.varietyCode = varietyCode;
    }

    public LocalDateTime getReportTime() {
        return reportTime;
    }

    public void setReportTime(LocalDateTime reportTime) {
        this.reportTime = reportTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "NewsData{" +
                "newsId=" + newsId +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", type='" + type + '\'' +
                ", varietyCode='" + varietyCode + '\'' +
                ", reportTime=" + reportTime +
                ", status='" + status + '\'' +
                '}';
    }
}
